﻿using System;

namespace Demo
{
    class Program
    {
        static void Main(string[] args)
        {
            User user = new User();
            Book book = new Book();
            Press press = new Press();


            Console.WriteLine("请输入用户名");
            user.Name = Console.ReadLine();
            Console.WriteLine("请输入用户的密码");
            user.Password = Console.ReadLine();
            Console.WriteLine("请输入用户的部门");
            user.Section = Console.ReadLine();

            user.Test();
            Console.WriteLine("请输入书名");
            book.Bookname = Console.ReadLine();
            Console.WriteLine("请输入作者");
            book.Bookwriter = Console.ReadLine();
            Console.WriteLine("请输入该书的出版社");
            book.Press = Console.ReadLine();
            Console.WriteLine("请输入该书的价格");
            book.Price = double.Parse(Console.ReadLine());
            book.Bookinformation();

            Console.WriteLine("请输入出版社的名称");
            press.Pressname = Console.ReadLine();
            Console.WriteLine("请输入出版社的地址");
            press.Pressadress = Console.ReadLine();
            Console.WriteLine("请输入出版社负责人");
            press.Principle = Console.ReadLine();
            press.Pressinformation();


        }
    }
}
